< previous page page_626 next page >

Page 626
9f31265bb40b592b1929e18a47ab28e5.gif
Private Sub Form_Load()
   With sbrMain.Panels
      .Item("Msg").Text = Me.Caption
      .Item("Login").Text = "PSheriff"
      .Item("Name").Text = Me.Name
   End With
End Sub
In the Form_Load() event, you reference the Panels collection of the status bar named sbrMain. On this status bar are three panels with the Key properties set to Msg, Login, and Name, respectively. You can set the Text property of each one by referencing the Item method with the Key value of the panel you want to add some data to.
ImageCombo
The ImageCombo control is like the standard combo box in that it displays a list of items. However, in the ImageCombo control, you can specify both a picture and some text for each item. In addition, youre allowed to indent any item to create a hierarchical view of the items.
Examples Filename: ImageCombo.frm
In the example shown in Figure 30.8 are two top-level items: Computer Items and Earth Items. Under each of these top-level items, you can see a list of items that is slightly indented under the top-level item.
8160-0626a.gif
Figure 30.8
An ImageCombo control example.

 
< previous page page_626 next page >

If you like this book, buy it!